package com.xuzimian.global.demo.spring.security.oauth2.client.bootutils;

import org.springframework.security.core.GrantedAuthority;

import java.util.List;
import java.util.Map;

/**
 * 备注：从Spring boot autoconfigure 抄过来的源码
 */
public interface AuthoritiesExtractor {
    /**
     * Extract the authorities from the resource server's response.
     * @param map the response
     * @return the extracted authorities
     */
    List<GrantedAuthority> extractAuthorities(Map<String, Object> map);
}
